
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>AssetDB · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-title/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="main/editor.html" />
    
    
    <link rel="prev" href="../enums/WrapMode.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
    <nav role="navigation" class="autoshow">
        <ul class="summary">
        <li><a href="http://cocos.com" class="btn" target="_blank"><img src="http://forum.cocos.com/images/logo.png" height="30" /></a></li>
        <li><a href="#" class="btn" onclick="toggleLanguage()">中文</a></li>
        
        
        <li class="version-link">
            <a href="#" class="btn" style="color:#444"></i>Version: <span style="font-weight: bold; display: inline">2.0 Preview</span></a>
            <ul class="hovershow">
                
                <li><a href="http://docs.cocos.com/creator/api/en" class="btn">Version: <span style="font-weight:bold; display: inline">1.x</span></a></li>
                
                <li><a href="http://docs.cocos.com/creator/api/2.0/en" class="btn">Version: <span style="font-weight:bold; display: inline">2.0 Preview</span></a></li>
                
            </ul>
        </li>                
        
          
        
        
        <li>
            <a class="btn"><i class="fa fa-book"></i>Cocos Creator</a>
            <ul>
                
                <li><a href="http://docs.cocos.com/creator/manual/en" class="btn">Manual</a></li>
                
                <li><a href="http://docs.cocos.com/creator/api/en" class="btn">API Ref</a></li>
                
            </ul>
        </li>                
        
        
        
        <li>
            <a class="btn"><i class="fa fa-book"></i>Cocos2d-x</a>
            <ul>
                
                <li><a href="http://docs.cocos.com/cocos2d-x/manual/en/" class="btn">Manual</a></li>
                
                <li><a href="http://www.cocos2d-x.org/docs/api-ref/index.html" class="btn">API Ref</a></li>
                
            </ul>
        </li>                
        
        
        
        <li><a href="http://docs.anysdk.com/" class="btn"><i class="fa fa-book"></i>AnySDK</a></li>
        
        
        </ul>
    </nav>
    
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">Modules</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../modules/GLOBAL-MACROS.html">
            
                <a href="../modules/GLOBAL-MACROS.html">
            
                    
                    GLOBAL-MACROS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../modules/_decorator.html">
            
                <a href="../modules/_decorator.html">
            
                    
                    _decorator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../modules/anysdk.html">
            
                <a href="../modules/anysdk.html">
            
                    
                    anysdk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../modules/cc.html">
            
                <a href="../modules/cc.html">
            
                    
                    cc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../modules/dragonBones.html">
            
                <a href="../modules/dragonBones.html">
            
                    
                    dragonBones
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../modules/js.html">
            
                <a href="../modules/js.html">
            
                    
                    js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../modules/sp.html">
            
                <a href="../modules/sp.html">
            
                    
                    sp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../modules/sp.spine.html">
            
                <a href="../modules/sp.spine.html">
            
                    
                    sp.spine
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Classes</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../classes/Action.html">
            
                <a href="../classes/Action.html">
            
                    
                    Action
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../classes/ActionInstant.html">
            
                <a href="../classes/ActionInstant.html">
            
                    
                    ActionInstant
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../classes/ActionInterval.html">
            
                <a href="../classes/ActionInterval.html">
            
                    
                    ActionInterval
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../classes/ActionManager.html">
            
                <a href="../classes/ActionManager.html">
            
                    
                    ActionManager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../classes/AffineTransform.html">
            
                <a href="../classes/AffineTransform.html">
            
                    
                    AffineTransform
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../classes/AgentManager.html">
            
                <a href="../classes/AgentManager.html">
            
                    
                    AgentManager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../classes/Animation.html">
            
                <a href="../classes/Animation.html">
            
                    
                    Animation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../classes/AnimationClip.html">
            
                <a href="../classes/AnimationClip.html">
            
                    
                    AnimationClip
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="../classes/AnimationState.html">
            
                <a href="../classes/AnimationState.html">
            
                    
                    AnimationState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="../classes/ArmatureDisplay.html">
            
                <a href="../classes/ArmatureDisplay.html">
            
                    
                    ArmatureDisplay
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="../classes/array.html">
            
                <a href="../classes/array.html">
            
                    
                    array
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="../classes/Asset.html">
            
                <a href="../classes/Asset.html">
            
                    
                    Asset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="../classes/AudioClip.html">
            
                <a href="../classes/AudioClip.html">
            
                    
                    AudioClip
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="../classes/audioEngine.html">
            
                <a href="../classes/audioEngine.html">
            
                    
                    audioEngine
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15" data-path="../classes/AudioSource.html">
            
                <a href="../classes/AudioSource.html">
            
                    
                    AudioSource
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.16" data-path="../classes/BitmapFont.html">
            
                <a href="../classes/BitmapFont.html">
            
                    
                    BitmapFont
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.17" data-path="../classes/BlockInputEvents.html">
            
                <a href="../classes/BlockInputEvents.html">
            
                    
                    BlockInputEvents
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.18" data-path="../classes/BoxCollider.html">
            
                <a href="../classes/BoxCollider.html">
            
                    
                    BoxCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.19" data-path="../classes/Button.html">
            
                <a href="../classes/Button.html">
            
                    
                    Button
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.20" data-path="../classes/CallbacksInvoker.html">
            
                <a href="../classes/CallbacksInvoker.html">
            
                    
                    CallbacksInvoker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.21" data-path="../classes/Camera.html">
            
                <a href="../classes/Camera.html">
            
                    
                    Camera
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.22" data-path="../classes/Canvas.html">
            
                <a href="../classes/Canvas.html">
            
                    
                    Canvas
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.23" data-path="../classes/CircleCollider.html">
            
                <a href="../classes/CircleCollider.html">
            
                    
                    CircleCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.24" data-path="../classes/CoffeeScript.html">
            
                <a href="../classes/CoffeeScript.html">
            
                    
                    CoffeeScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.25" data-path="../classes/Collider.html">
            
                <a href="../classes/Collider.html">
            
                    
                    Collider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.26" data-path="../classes/Collider.Box.html">
            
                <a href="../classes/Collider.Box.html">
            
                    
                    Collider.Box
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.27" data-path="../classes/Collider.Circle.html">
            
                <a href="../classes/Collider.Circle.html">
            
                    
                    Collider.Circle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.28" data-path="../classes/Collider.Polygon.html">
            
                <a href="../classes/Collider.Polygon.html">
            
                    
                    Collider.Polygon
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.29" data-path="../classes/CollisionManager.html">
            
                <a href="../classes/CollisionManager.html">
            
                    
                    CollisionManager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.30" data-path="../classes/Color.html">
            
                <a href="../classes/Color.html">
            
                    
                    Color
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.31" data-path="../classes/Component.html">
            
                <a href="../classes/Component.html">
            
                    
                    Component
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.32" data-path="../classes/Component.EventHandler.html">
            
                <a href="../classes/Component.EventHandler.html">
            
                    
                    Component.EventHandler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.33" data-path="../classes/constructor.html">
            
                <a href="../classes/constructor.html">
            
                    
                    constructor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.34" data-path="../classes/ContainerStrategy.html">
            
                <a href="../classes/ContainerStrategy.html">
            
                    
                    ContainerStrategy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.35" data-path="../classes/ContentStrategy.html">
            
                <a href="../classes/ContentStrategy.html">
            
                    
                    ContentStrategy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.36" data-path="../classes/Details.html">
            
                <a href="../classes/Details.html">
            
                    
                    Details
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.37" data-path="../classes/Director.html">
            
                <a href="../classes/Director.html">
            
                    
                    Director
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.38" data-path="../classes/DistanceJoint.html">
            
                <a href="../classes/DistanceJoint.html">
            
                    
                    DistanceJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.39" data-path="../classes/DragonBonesAsset.html">
            
                <a href="../classes/DragonBonesAsset.html">
            
                    
                    DragonBonesAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.40" data-path="../classes/DragonBonesAtlasAsset.html">
            
                <a href="../classes/DragonBonesAtlasAsset.html">
            
                    
                    DragonBonesAtlasAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.41" data-path="../classes/EditBox.html">
            
                <a href="../classes/EditBox.html">
            
                    
                    EditBox
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.42" data-path="../classes/EqualToFrame.html">
            
                <a href="../classes/EqualToFrame.html">
            
                    
                    EqualToFrame
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.43" data-path="../classes/EqualToWindow.html">
            
                <a href="../classes/EqualToWindow.html">
            
                    
                    EqualToWindow
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.44" data-path="../classes/Event.html">
            
                <a href="../classes/Event.html">
            
                    
                    Event
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.45" data-path="../classes/Event.EventAcceleration.html">
            
                <a href="../classes/Event.EventAcceleration.html">
            
                    
                    Event.EventAcceleration
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.46" data-path="../classes/Event.EventCustom.html">
            
                <a href="../classes/Event.EventCustom.html">
            
                    
                    Event.EventCustom
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.47" data-path="../classes/Event.EventKeyboard.html">
            
                <a href="../classes/Event.EventKeyboard.html">
            
                    
                    Event.EventKeyboard
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.48" data-path="../classes/Event.EventMouse.html">
            
                <a href="../classes/Event.EventMouse.html">
            
                    
                    Event.EventMouse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.49" data-path="../classes/Event.EventTouch.html">
            
                <a href="../classes/Event.EventTouch.html">
            
                    
                    Event.EventTouch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.50" data-path="../classes/EventTarget.html">
            
                <a href="../classes/EventTarget.html">
            
                    
                    EventTarget
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.51" data-path="../classes/FiniteTimeAction.html">
            
                <a href="../classes/FiniteTimeAction.html">
            
                    
                    FiniteTimeAction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.52" data-path="../classes/Font.html">
            
                <a href="../classes/Font.html">
            
                    
                    Font
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.53" data-path="../classes/Game.html">
            
                <a href="../classes/Game.html">
            
                    
                    Game
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.54" data-path="../classes/Graphics.html">
            
                <a href="../classes/Graphics.html">
            
                    
                    Graphics
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.55" data-path="../classes/Intersection.html">
            
                <a href="../classes/Intersection.html">
            
                    
                    Intersection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.56" data-path="../classes/Joint.html">
            
                <a href="../classes/Joint.html">
            
                    
                    Joint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.57" data-path="../classes/JsonAsset.html">
            
                <a href="../classes/JsonAsset.html">
            
                    
                    JsonAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.58" data-path="../classes/Label.html">
            
                <a href="../classes/Label.html">
            
                    
                    Label
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.59" data-path="../classes/LabelAtlas.html">
            
                <a href="../classes/LabelAtlas.html">
            
                    
                    LabelAtlas
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.60" data-path="../classes/LabelOutline.html">
            
                <a href="../classes/LabelOutline.html">
            
                    
                    LabelOutline
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.61" data-path="../classes/Layout.html">
            
                <a href="../classes/Layout.html">
            
                    
                    Layout
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.62" data-path="../classes/loader.html">
            
                <a href="../classes/loader.html">
            
                    
                    loader
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.63" data-path="../classes/LoadingItems.html">
            
                <a href="../classes/LoadingItems.html">
            
                    
                    LoadingItems
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.64" data-path="../classes/Manifold.html">
            
                <a href="../classes/Manifold.html">
            
                    
                    Manifold
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.65" data-path="../classes/ManifoldPoint.html">
            
                <a href="../classes/ManifoldPoint.html">
            
                    
                    ManifoldPoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.66" data-path="../classes/Mask.html">
            
                <a href="../classes/Mask.html">
            
                    
                    Mask
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.67" data-path="../classes/misc.html">
            
                <a href="../classes/misc.html">
            
                    
                    misc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.68" data-path="../classes/MotionStreak.html">
            
                <a href="../classes/MotionStreak.html">
            
                    
                    MotionStreak
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.69" data-path="../classes/MotorJoint.html">
            
                <a href="../classes/MotorJoint.html">
            
                    
                    MotorJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.70" data-path="../classes/MouseJoint.html">
            
                <a href="../classes/MouseJoint.html">
            
                    
                    MouseJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.71" data-path="../classes/Node.html">
            
                <a href="../classes/Node.html">
            
                    
                    Node
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.72" data-path="../classes/NodePool.html">
            
                <a href="../classes/NodePool.html">
            
                    
                    NodePool
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.73" data-path="../classes/OriginalContainer.html">
            
                <a href="../classes/OriginalContainer.html">
            
                    
                    OriginalContainer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.74" data-path="../classes/PageView.html">
            
                <a href="../classes/PageView.html">
            
                    
                    PageView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.75" data-path="../classes/PageViewIndicator.html">
            
                <a href="../classes/PageViewIndicator.html">
            
                    
                    PageViewIndicator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.76" data-path="../classes/ParticleAsset.html">
            
                <a href="../classes/ParticleAsset.html">
            
                    
                    ParticleAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.77" data-path="../classes/ParticleSystem.html">
            
                <a href="../classes/ParticleSystem.html">
            
                    
                    ParticleSystem
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.78" data-path="../classes/path.html">
            
                <a href="../classes/path.html">
            
                    
                    path
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.79" data-path="../classes/PhysicsBoxCollider.html">
            
                <a href="../classes/PhysicsBoxCollider.html">
            
                    
                    PhysicsBoxCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.80" data-path="../classes/PhysicsChainCollider.html">
            
                <a href="../classes/PhysicsChainCollider.html">
            
                    
                    PhysicsChainCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.81" data-path="../classes/PhysicsCircleCollider.html">
            
                <a href="../classes/PhysicsCircleCollider.html">
            
                    
                    PhysicsCircleCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.82" data-path="../classes/PhysicsCollider.html">
            
                <a href="../classes/PhysicsCollider.html">
            
                    
                    PhysicsCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.83" data-path="../classes/PhysicsContact.html">
            
                <a href="../classes/PhysicsContact.html">
            
                    
                    PhysicsContact
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.84" data-path="../classes/PhysicsImpulse.html">
            
                <a href="../classes/PhysicsImpulse.html">
            
                    
                    PhysicsImpulse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.85" data-path="../classes/PhysicsManager.html">
            
                <a href="../classes/PhysicsManager.html">
            
                    
                    PhysicsManager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.86" data-path="../classes/PhysicsPolygonCollider.html">
            
                <a href="../classes/PhysicsPolygonCollider.html">
            
                    
                    PhysicsPolygonCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.87" data-path="../classes/PhysicsRayCastResult.html">
            
                <a href="../classes/PhysicsRayCastResult.html">
            
                    
                    PhysicsRayCastResult
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.88" data-path="../classes/Pipeline.html">
            
                <a href="../classes/Pipeline.html">
            
                    
                    Pipeline
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.89" data-path="../classes/Pipeline.Downloader.html">
            
                <a href="../classes/Pipeline.Downloader.html">
            
                    
                    Pipeline.Downloader
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.90" data-path="../classes/Pipeline.Loader.html">
            
                <a href="../classes/Pipeline.Loader.html">
            
                    
                    Pipeline.Loader
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.91" data-path="../classes/Playable.html">
            
                <a href="../classes/Playable.html">
            
                    
                    Playable
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.92" data-path="../classes/PluginParam.html">
            
                <a href="../classes/PluginParam.html">
            
                    
                    PluginParam
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.93" data-path="../classes/PluginProtocol.html">
            
                <a href="../classes/PluginProtocol.html">
            
                    
                    PluginProtocol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.94" data-path="../classes/PolygonCollider.html">
            
                <a href="../classes/PolygonCollider.html">
            
                    
                    PolygonCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.95" data-path="../classes/Pool.html">
            
                <a href="../classes/Pool.html">
            
                    
                    Pool
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.96" data-path="../classes/Prefab.html">
            
                <a href="../classes/Prefab.html">
            
                    
                    Prefab
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.97" data-path="../classes/PrismaticJoint.html">
            
                <a href="../classes/PrismaticJoint.html">
            
                    
                    PrismaticJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.98" data-path="../classes/PrivateNode.html">
            
                <a href="../classes/PrivateNode.html">
            
                    
                    PrivateNode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.99" data-path="../classes/ProgressBar.html">
            
                <a href="../classes/ProgressBar.html">
            
                    
                    ProgressBar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.100" data-path="../classes/ProportionalToFrame.html">
            
                <a href="../classes/ProportionalToFrame.html">
            
                    
                    ProportionalToFrame
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.101" data-path="../classes/ProportionalToWindow.html">
            
                <a href="../classes/ProportionalToWindow.html">
            
                    
                    ProportionalToWindow
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.102" data-path="../classes/ProtocolAds.html">
            
                <a href="../classes/ProtocolAds.html">
            
                    
                    ProtocolAds
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.103" data-path="../classes/ProtocolAdTracking.html">
            
                <a href="../classes/ProtocolAdTracking.html">
            
                    
                    ProtocolAdTracking
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.104" data-path="../classes/ProtocolAnalytics.html">
            
                <a href="../classes/ProtocolAnalytics.html">
            
                    
                    ProtocolAnalytics
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.105" data-path="../classes/ProtocolCrash.html">
            
                <a href="../classes/ProtocolCrash.html">
            
                    
                    ProtocolCrash
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.106" data-path="../classes/ProtocolCustom.html">
            
                <a href="../classes/ProtocolCustom.html">
            
                    
                    ProtocolCustom
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.107" data-path="../classes/ProtocolIAP.html">
            
                <a href="../classes/ProtocolIAP.html">
            
                    
                    ProtocolIAP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.108" data-path="../classes/ProtocolPush.html">
            
                <a href="../classes/ProtocolPush.html">
            
                    
                    ProtocolPush
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.109" data-path="../classes/ProtocolREC.html">
            
                <a href="../classes/ProtocolREC.html">
            
                    
                    ProtocolREC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.110" data-path="../classes/ProtocolShare.html">
            
                <a href="../classes/ProtocolShare.html">
            
                    
                    ProtocolShare
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.111" data-path="../classes/ProtocolSocial.html">
            
                <a href="../classes/ProtocolSocial.html">
            
                    
                    ProtocolSocial
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.112" data-path="../classes/ProtocolUser.html">
            
                <a href="../classes/ProtocolUser.html">
            
                    
                    ProtocolUser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.113" data-path="../classes/Quat.html">
            
                <a href="../classes/Quat.html">
            
                    
                    Quat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.114" data-path="../classes/RawAsset.html">
            
                <a href="../classes/RawAsset.html">
            
                    
                    RawAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.115" data-path="../classes/Rect.html">
            
                <a href="../classes/Rect.html">
            
                    
                    Rect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.116" data-path="../classes/RenderComponent.html">
            
                <a href="../classes/RenderComponent.html">
            
                    
                    RenderComponent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.117" data-path="../classes/RenderTexture.html">
            
                <a href="../classes/RenderTexture.html">
            
                    
                    RenderTexture
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.118" data-path="../classes/ResolutionPolicy.html">
            
                <a href="../classes/ResolutionPolicy.html">
            
                    
                    ResolutionPolicy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.119" data-path="../classes/RevoluteJoint.html">
            
                <a href="../classes/RevoluteJoint.html">
            
                    
                    RevoluteJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.120" data-path="../classes/RichText.html">
            
                <a href="../classes/RichText.html">
            
                    
                    RichText
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.121" data-path="../classes/RigidBody.html">
            
                <a href="../classes/RigidBody.html">
            
                    
                    RigidBody
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.122" data-path="../classes/RopeJoint.html">
            
                <a href="../classes/RopeJoint.html">
            
                    
                    RopeJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.123" data-path="../classes/Scene.html">
            
                <a href="../classes/Scene.html">
            
                    
                    Scene
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.124" data-path="../classes/SceneAsset.html">
            
                <a href="../classes/SceneAsset.html">
            
                    
                    SceneAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.125" data-path="../classes/Scheduler.html">
            
                <a href="../classes/Scheduler.html">
            
                    
                    Scheduler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.126" data-path="../classes/screen.html">
            
                <a href="../classes/screen.html">
            
                    
                    screen
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.127" data-path="../classes/Scrollbar.html">
            
                <a href="../classes/Scrollbar.html">
            
                    
                    Scrollbar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.128" data-path="../classes/ScrollView.html">
            
                <a href="../classes/ScrollView.html">
            
                    
                    ScrollView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.129" data-path="../classes/Size.html">
            
                <a href="../classes/Size.html">
            
                    
                    Size
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.130" data-path="../classes/Skeleton.html">
            
                <a href="../classes/Skeleton.html">
            
                    
                    Skeleton
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.131" data-path="../classes/SkeletonData.html">
            
                <a href="../classes/SkeletonData.html">
            
                    
                    SkeletonData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.132" data-path="../classes/Slider.html">
            
                <a href="../classes/Slider.html">
            
                    
                    Slider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.133" data-path="../classes/Sprite.html">
            
                <a href="../classes/Sprite.html">
            
                    
                    Sprite
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.134" data-path="../classes/SpriteAtlas.html">
            
                <a href="../classes/SpriteAtlas.html">
            
                    
                    SpriteAtlas
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.135" data-path="../classes/SpriteFrame.html">
            
                <a href="../classes/SpriteFrame.html">
            
                    
                    SpriteFrame
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.136" data-path="../classes/sys.html">
            
                <a href="../classes/sys.html">
            
                    
                    sys
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.137" data-path="../classes/SystemEvent.html">
            
                <a href="../classes/SystemEvent.html">
            
                    
                    SystemEvent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.138" data-path="../classes/SystemEvent.EventType.html">
            
                <a href="../classes/SystemEvent.EventType.html">
            
                    
                    SystemEvent.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.139" data-path="../classes/TextAsset.html">
            
                <a href="../classes/TextAsset.html">
            
                    
                    TextAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.140" data-path="../classes/Texture2D.html">
            
                <a href="../classes/Texture2D.html">
            
                    
                    Texture2D
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.141" data-path="../classes/TiledLayer.html">
            
                <a href="../classes/TiledLayer.html">
            
                    
                    TiledLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.142" data-path="../classes/TiledMap.html">
            
                <a href="../classes/TiledMap.html">
            
                    
                    TiledMap
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.143" data-path="../classes/TiledMapAsset.html">
            
                <a href="../classes/TiledMapAsset.html">
            
                    
                    TiledMapAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.144" data-path="../classes/TiledObjectGroup.html">
            
                <a href="../classes/TiledObjectGroup.html">
            
                    
                    TiledObjectGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.145" data-path="../classes/TiledTile.html">
            
                <a href="../classes/TiledTile.html">
            
                    
                    TiledTile
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.146" data-path="../classes/Toggle.html">
            
                <a href="../classes/Toggle.html">
            
                    
                    Toggle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.147" data-path="../classes/ToggleContainer.html">
            
                <a href="../classes/ToggleContainer.html">
            
                    
                    ToggleContainer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.148" data-path="../classes/ToggleGroup.html">
            
                <a href="../classes/ToggleGroup.html">
            
                    
                    ToggleGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.149" data-path="../classes/Touch.html">
            
                <a href="../classes/Touch.html">
            
                    
                    Touch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.150" data-path="../classes/TTFFont.html">
            
                <a href="../classes/TTFFont.html">
            
                    
                    TTFFont
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.151" data-path="../classes/TypeScript.html">
            
                <a href="../classes/TypeScript.html">
            
                    
                    TypeScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.152" data-path="../classes/url.html">
            
                <a href="../classes/url.html">
            
                    
                    url
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.153" data-path="../classes/ValueType.html">
            
                <a href="../classes/ValueType.html">
            
                    
                    ValueType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.154" data-path="../classes/Vec2.html">
            
                <a href="../classes/Vec2.html">
            
                    
                    Vec2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.155" data-path="../classes/Vec3.html">
            
                <a href="../classes/Vec3.html">
            
                    
                    Vec3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.156" data-path="../classes/VideoPlayer.html">
            
                <a href="../classes/VideoPlayer.html">
            
                    
                    VideoPlayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.157" data-path="../classes/View.html">
            
                <a href="../classes/View.html">
            
                    
                    View
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.158" data-path="../classes/ViewGroup.html">
            
                <a href="../classes/ViewGroup.html">
            
                    
                    ViewGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.159" data-path="../classes/visibleRect.html">
            
                <a href="../classes/visibleRect.html">
            
                    
                    visibleRect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.160" data-path="../classes/WebView.html">
            
                <a href="../classes/WebView.html">
            
                    
                    WebView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.161" data-path="../classes/WeldJoint.html">
            
                <a href="../classes/WeldJoint.html">
            
                    
                    WeldJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.162" data-path="../classes/WheelJoint.html">
            
                <a href="../classes/WheelJoint.html">
            
                    
                    WheelJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.163" data-path="../classes/Widget.html">
            
                <a href="../classes/Widget.html">
            
                    
                    Widget
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.164" data-path="../classes/WorldManifold.html">
            
                <a href="../classes/WorldManifold.html">
            
                    
                    WorldManifold
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Enums</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../enums/AccountGender.html">
            
                <a href="../enums/AccountGender.html">
            
                    
                    AccountGender
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../enums/AccountOperate.html">
            
                <a href="../enums/AccountOperate.html">
            
                    
                    AccountOperate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../enums/AccountType.html">
            
                <a href="../enums/AccountType.html">
            
                    
                    AccountType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="../enums/AdsPos.html">
            
                <a href="../enums/AdsPos.html">
            
                    
                    AdsPos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="../enums/AdsResultCode.html">
            
                <a href="../enums/AdsResultCode.html">
            
                    
                    AdsResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="../enums/AdsType.html">
            
                <a href="../enums/AdsType.html">
            
                    
                    AdsType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="../enums/AnimationEventType.html">
            
                <a href="../enums/AnimationEventType.html">
            
                    
                    AnimationEventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="../enums/audioEngine.AudioState.html">
            
                <a href="../enums/audioEngine.AudioState.html">
            
                    
                    audioEngine.AudioState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.9" data-path="../enums/BlendFactor.html">
            
                <a href="../enums/BlendFactor.html">
            
                    
                    BlendFactor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.10" data-path="../enums/Button.Transition.html">
            
                <a href="../enums/Button.Transition.html">
            
                    
                    Button.Transition
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.11" data-path="../enums/Camera.ClearFlags.html">
            
                <a href="../enums/Camera.ClearFlags.html">
            
                    
                    Camera.ClearFlags
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.12" data-path="../enums/CustomResultCode.html">
            
                <a href="../enums/CustomResultCode.html">
            
                    
                    CustomResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.13" data-path="../enums/DebugMode.html">
            
                <a href="../enums/DebugMode.html">
            
                    
                    DebugMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.14" data-path="../enums/DrawBits.html">
            
                <a href="../enums/DrawBits.html">
            
                    
                    DrawBits
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.15" data-path="../enums/EditBox.InputFlag.html">
            
                <a href="../enums/EditBox.InputFlag.html">
            
                    
                    EditBox.InputFlag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.16" data-path="../enums/EditBox.InputMode.html">
            
                <a href="../enums/EditBox.InputMode.html">
            
                    
                    EditBox.InputMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.17" data-path="../enums/EditBox.KeyboardReturnType.html">
            
                <a href="../enums/EditBox.KeyboardReturnType.html">
            
                    
                    EditBox.KeyboardReturnType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.18" data-path="../enums/Graphics.LineCap.html">
            
                <a href="../enums/Graphics.LineCap.html">
            
                    
                    Graphics.LineCap
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.19" data-path="../enums/Graphics.LineJoin.html">
            
                <a href="../enums/Graphics.LineJoin.html">
            
                    
                    Graphics.LineJoin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.20" data-path="../enums/ImageFormat.html">
            
                <a href="../enums/ImageFormat.html">
            
                    
                    ImageFormat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.21" data-path="../enums/KEY.html">
            
                <a href="../enums/KEY.html">
            
                    
                    KEY
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.22" data-path="../enums/Label.HorizontalAlign.html">
            
                <a href="../enums/Label.HorizontalAlign.html">
            
                    
                    Label.HorizontalAlign
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.23" data-path="../enums/Label.Overflow.html">
            
                <a href="../enums/Label.Overflow.html">
            
                    
                    Label.Overflow
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.24" data-path="../enums/Label.Type.html">
            
                <a href="../enums/Label.Type.html">
            
                    
                    Label.Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.25" data-path="../enums/Label.VerticalAlign.html">
            
                <a href="../enums/Label.VerticalAlign.html">
            
                    
                    Label.VerticalAlign
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.26" data-path="../enums/Layout.AxisDirection.html">
            
                <a href="../enums/Layout.AxisDirection.html">
            
                    
                    Layout.AxisDirection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.27" data-path="../enums/Layout.HorizontalDirection.html">
            
                <a href="../enums/Layout.HorizontalDirection.html">
            
                    
                    Layout.HorizontalDirection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.28" data-path="../enums/Layout.ResizeMode.html">
            
                <a href="../enums/Layout.ResizeMode.html">
            
                    
                    Layout.ResizeMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.29" data-path="../enums/Layout.Type.html">
            
                <a href="../enums/Layout.Type.html">
            
                    
                    Layout.Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.30" data-path="../enums/Layout.VerticalDirection.html">
            
                <a href="../enums/Layout.VerticalDirection.html">
            
                    
                    Layout.VerticalDirection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.31" data-path="../enums/LoadingItems.ItemState.html">
            
                <a href="../enums/LoadingItems.ItemState.html">
            
                    
                    LoadingItems.ItemState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.32" data-path="../enums/macro.html">
            
                <a href="../enums/macro.html">
            
                    
                    macro
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.33" data-path="../enums/Mask.Type.html">
            
                <a href="../enums/Mask.Type.html">
            
                    
                    Mask.Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.34" data-path="../enums/NetworkType.html">
            
                <a href="../enums/NetworkType.html">
            
                    
                    NetworkType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.35" data-path="../enums/Node.EventType.html">
            
                <a href="../enums/Node.EventType.html">
            
                    
                    Node.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.36" data-path="../enums/PageView.Direction.html">
            
                <a href="../enums/PageView.Direction.html">
            
                    
                    PageView.Direction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.37" data-path="../enums/PageView.EventType.html">
            
                <a href="../enums/PageView.EventType.html">
            
                    
                    PageView.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.38" data-path="../enums/PageView.SizeMode.html">
            
                <a href="../enums/PageView.SizeMode.html">
            
                    
                    PageView.SizeMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.39" data-path="../enums/PageViewIndicator.Direction.html">
            
                <a href="../enums/PageViewIndicator.Direction.html">
            
                    
                    PageViewIndicator.Direction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.40" data-path="../enums/ParticleSystem.EmitterMode.html">
            
                <a href="../enums/ParticleSystem.EmitterMode.html">
            
                    
                    ParticleSystem.EmitterMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.41" data-path="../enums/ParticleSystem.PositionType.html">
            
                <a href="../enums/ParticleSystem.PositionType.html">
            
                    
                    ParticleSystem.PositionType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.42" data-path="../enums/PayResultCode.html">
            
                <a href="../enums/PayResultCode.html">
            
                    
                    PayResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.43" data-path="../enums/Prefab.OptimizationPolicy.html">
            
                <a href="../enums/Prefab.OptimizationPolicy.html">
            
                    
                    Prefab.OptimizationPolicy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.44" data-path="../enums/ProgressBar.Mode.html">
            
                <a href="../enums/ProgressBar.Mode.html">
            
                    
                    ProgressBar.Mode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.45" data-path="../enums/PushActionResultCode.html">
            
                <a href="../enums/PushActionResultCode.html">
            
                    
                    PushActionResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.46" data-path="../enums/RayCastType.html">
            
                <a href="../enums/RayCastType.html">
            
                    
                    RayCastType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.47" data-path="../enums/RECResultCode.html">
            
                <a href="../enums/RECResultCode.html">
            
                    
                    RECResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.48" data-path="../enums/RigidBodyType.html">
            
                <a href="../enums/RigidBodyType.html">
            
                    
                    RigidBodyType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.49" data-path="../enums/Scrollbar.Direction.html">
            
                <a href="../enums/Scrollbar.Direction.html">
            
                    
                    Scrollbar.Direction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.50" data-path="../enums/ScrollView.EventType.html">
            
                <a href="../enums/ScrollView.EventType.html">
            
                    
                    ScrollView.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.51" data-path="../enums/ShareResultCode.html">
            
                <a href="../enums/ShareResultCode.html">
            
                    
                    ShareResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.52" data-path="../enums/Slider.Direction.html">
            
                <a href="../enums/Slider.Direction.html">
            
                    
                    Slider.Direction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.53" data-path="../enums/SocialRetCode.html">
            
                <a href="../enums/SocialRetCode.html">
            
                    
                    SocialRetCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.54" data-path="../enums/Sprite.FillType.html">
            
                <a href="../enums/Sprite.FillType.html">
            
                    
                    Sprite.FillType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.55" data-path="../enums/Sprite.SizeMode.html">
            
                <a href="../enums/Sprite.SizeMode.html">
            
                    
                    Sprite.SizeMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.56" data-path="../enums/Sprite.Type.html">
            
                <a href="../enums/Sprite.Type.html">
            
                    
                    Sprite.Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.57" data-path="../enums/TaskType.html">
            
                <a href="../enums/TaskType.html">
            
                    
                    TaskType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.58" data-path="../enums/TextAlignment.html">
            
                <a href="../enums/TextAlignment.html">
            
                    
                    TextAlignment
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.59" data-path="../enums/Texture2D.Filter.html">
            
                <a href="../enums/Texture2D.Filter.html">
            
                    
                    Texture2D.Filter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.60" data-path="../enums/Texture2D.PixelFormat.html">
            
                <a href="../enums/Texture2D.PixelFormat.html">
            
                    
                    Texture2D.PixelFormat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.61" data-path="../enums/Texture2D.WrapMode.html">
            
                <a href="../enums/Texture2D.WrapMode.html">
            
                    
                    Texture2D.WrapMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.62" data-path="../enums/TiledMap.Orientation.html">
            
                <a href="../enums/TiledMap.Orientation.html">
            
                    
                    TiledMap.Orientation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.63" data-path="../enums/ToolBarPlace.html">
            
                <a href="../enums/ToolBarPlace.html">
            
                    
                    ToolBarPlace
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.64" data-path="../enums/UserActionResultCode.html">
            
                <a href="../enums/UserActionResultCode.html">
            
                    
                    UserActionResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.65" data-path="../enums/VerticalTextAlignment.html">
            
                <a href="../enums/VerticalTextAlignment.html">
            
                    
                    VerticalTextAlignment
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.66" data-path="../enums/VideoPlayer.EventType.html">
            
                <a href="../enums/VideoPlayer.EventType.html">
            
                    
                    VideoPlayer.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.67" data-path="../enums/VideoPlayer.ResourceType.html">
            
                <a href="../enums/VideoPlayer.ResourceType.html">
            
                    
                    VideoPlayer.ResourceType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.68" data-path="../enums/WebView.EventType.html">
            
                <a href="../enums/WebView.EventType.html">
            
                    
                    WebView.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.69" data-path="../enums/Widget.AlignMode.html">
            
                <a href="../enums/Widget.AlignMode.html">
            
                    
                    Widget.AlignMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.70" data-path="../enums/WrapMode.html">
            
                <a href="../enums/WrapMode.html">
            
                    
                    WrapMode
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Editor API</li>
        
        
    
        <li class="chapter active" data-level="4.1" data-path="asset-db.html">
            
                <a href="asset-db.html">
            
                    
                    AssetDB
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Main Process</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="main/editor.html">
            
                <a href="main/editor.html">
            
                    
                    Editor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="main/console.html">
            
                <a href="main/console.html">
            
                    
                    Editor (Console Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="main/app.html">
            
                <a href="main/app.html">
            
                    
                    Editor.App
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="main/debugger.html">
            
                <a href="main/debugger.html">
            
                    
                    Editor.Debugger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="main/devtools.html">
            
                <a href="main/devtools.html">
            
                    
                    Editor.DevTools
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="main/dialog.html">
            
                <a href="main/dialog.html">
            
                    
                    Editor.Dialog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.7" data-path="main/ipc.html">
            
                <a href="main/ipc.html">
            
                    
                    Editor.Ipc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.8" data-path="main/main-menu.html">
            
                <a href="main/main-menu.html">
            
                    
                    Editor.MainMenu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.9" data-path="main/menu.html">
            
                <a href="main/menu.html">
            
                    
                    Editor.Menu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.10" data-path="main/package.html">
            
                <a href="main/package.html">
            
                    
                    Editor.Package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.11" data-path="main/panel.html">
            
                <a href="main/panel.html">
            
                    
                    Editor.Panel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.12" data-path="main/profile.html">
            
                <a href="main/profile.html">
            
                    
                    Editor.Profile
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.13" data-path="main/protocol.html">
            
                <a href="main/protocol.html">
            
                    
                    Editor.Protocol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.14" data-path="main/window.html">
            
                <a href="main/window.html">
            
                    
                    Editor.Window
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.15" data-path="main/worker.html">
            
                <a href="main/worker.html">
            
                    
                    Editor.Worker
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Renderer Process (Web Page)</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="renderer/editor.html">
            
                <a href="renderer/editor.html">
            
                    
                    Editor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="renderer/console.html">
            
                <a href="renderer/console.html">
            
                    
                    Editor (Console Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="renderer/audio.md">
            
                <span>
            
                    
                    Editor.Audio
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="renderer/dialog.html">
            
                <a href="renderer/dialog.html">
            
                    
                    Editor.Dialog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.5" data-path="renderer/ipc.html">
            
                <a href="renderer/ipc.html">
            
                    
                    Editor.Ipc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.6" data-path="renderer/main-menu.html">
            
                <a href="renderer/main-menu.html">
            
                    
                    Editor.MainMenu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.7" data-path="renderer/menu.html">
            
                <a href="renderer/menu.html">
            
                    
                    Editor.Menu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.8" data-path="renderer/package.html">
            
                <a href="renderer/package.html">
            
                    
                    Editor.Package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.9" data-path="renderer/panel.html">
            
                <a href="renderer/panel.html">
            
                    
                    Editor.Panel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.10" data-path="renderer/protocol.html">
            
                <a href="renderer/protocol.html">
            
                    
                    Editor.Protocol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.11" data-path="renderer/window.html">
            
                <a href="renderer/window.html">
            
                    
                    Editor.Window
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.12" data-path="renderer/ui/dom-utils.html">
            
                <a href="renderer/ui/dom-utils.html">
            
                    
                    Editor.UI (DOM Utils Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.13" data-path="renderer/ui/element-utils.html">
            
                <a href="renderer/ui/element-utils.html">
            
                    
                    Editor.UI (Element Utils Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.14" data-path="renderer/ui/focus-mgr.html">
            
                <a href="renderer/ui/focus-mgr.html">
            
                    
                    Editor.UI (Focus Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.15" data-path="renderer/ui/resource-mgr.html">
            
                <a href="renderer/ui/resource-mgr.html">
            
                    
                    Editor.UI (Resources Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.16" data-path="renderer/ui/settings.html">
            
                <a href="renderer/ui/settings.html">
            
                    
                    Editor.UI.Settings
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.17" data-path="renderer/ui/dock-utils.html">
            
                <a href="renderer/ui/dock-utils.html">
            
                    
                    Editor.UI.DockUtils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.18" data-path="renderer/ui/drag-drop.html">
            
                <a href="renderer/ui/drag-drop.html">
            
                    
                    Editor.UI.DragDrop
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Modules for Both Processes</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="share/editor.html">
            
                <a href="share/editor.html">
            
                    
                    Editor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="share/easing.html">
            
                <a href="share/easing.html">
            
                    
                    Editor.Easing
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="share/ipc-listener.html">
            
                <a href="share/ipc-listener.html">
            
                    
                    Editor.IpcListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="share/js-utils.html">
            
                <a href="share/js-utils.html">
            
                    
                    Editor.JS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="share/math.html">
            
                <a href="share/math.html">
            
                    
                    Editor.Math
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="share/selection.html">
            
                <a href="share/selection.html">
            
                    
                    Editor.Selection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.7" data-path="share/undo.html">
            
                <a href="share/undo.html">
            
                    
                    Editor.Undo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.8" data-path="share/utils.html">
            
                <a href="share/utils.html">
            
                    
                    Editor.Utils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.9" data-path="share/i18n.html">
            
                <a href="share/i18n.html">
            
                    
                    Editor.i18n
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        

    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
    <div class="page-wrapper" tabindex="-1" role="main">
            

<div class="cocos-navbar navbar-collapse clearfix" id="navbar" role="navigation">
    <ul class="nav navbar-nav">
        <li><a href="http://cocos.com" class="btn" target="_blank"><img src="http://forum.cocos.com/images/logo.png" height="30" /></a></li>
        <li><a href="#" class="btn autohide" onclick="toggleLanguage()">中文</a></li>

    
    <li>
        <a href="#" class="btn autohide"><i class="fa fa-book"></i>Cocos Creator</a>
        <ul class="hovershow">
            
            <li><a href="http://docs.cocos.com/creator/manual/en" class="btn">Manual</a></li>
            
            <li><a href="http://docs.cocos.com/creator/api/en" class="btn">API Ref</a></li>
            
        </ul>
    </li>                
    

    
    <li>
        <a href="#" class="btn autohide"><i class="fa fa-book"></i>Cocos2d-x</a>
        <ul class="hovershow">
            
            <li><a href="http://docs.cocos.com/cocos2d-x/manual/en/" class="btn">Manual</a></li>
            
            <li><a href="http://www.cocos2d-x.org/docs/api-ref/index.html" class="btn">API Ref</a></li>
            
        </ul>
    </li>                
    

    
    <li><a href="http://docs.anysdk.com/" class="btn autohide"><i class="fa fa-book"></i>AnySDK</a></li>
    


    
    <li class="version-link">
        <a class="btn" style="color:#444">Version: <span style="font-weight:bold">2.0 Preview</span></a>
        <ul class="hovershow">
            
            <li><a href="http://docs.cocos.com/creator/api/en" class="btn">Version: <span style="font-weight:bold">1.x</span></a></li>
            
            <li><a href="http://docs.cocos.com/creator/api/2.0/en" class="btn">Version: <span style="font-weight:bold">2.0 Preview</span></a></li>
            
        </ul>
    </li>                
    
      
    </ul>
</div>
<div class="book-header" role="navigation">
    
    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >AssetDB</a>
    </h1>
</div>



        <div class="page-inner">
            
                <section class="normal markdown-section">
                
                <h2 id="modules">Modules</h2>
<dl>
<dt><a href="#module_AssetDB">AssetDB</a></dt>
<dd></dd>
</dl>

<h2 id="functions">Functions</h2>
<dl>
<dt><a href="#_checkIfMountValid">_checkIfMountValid(assetdb, fspath)</a></dt>
<dd><p>check and remove unused meta file</p>
</dd>
<dt><a href="#_deleteImportedAssets">_deleteImportedAssets()</a></dt>
<dd></dd>
<dt><a href="#_removeUnusedMeta">_removeUnusedMeta(assetdb, metapath)</a></dt>
<dd><p>check and remove unused meta file</p>
</dd>
<dt><a href="#_backupUnusedMeta">_backupUnusedMeta(assetdb, metapath, force)</a> &#x21D2; <code>string</code></dt>
<dd><p>check and backup unused meta file</p>
</dd>
<dt><a href="#_backupAsset">_backupAsset(assetdb, filePath)</a></dt>
<dd><p>check and backup asset file</p>
</dd>
<dt><a href="#_removeUnusedImportFiles">_removeUnusedImportFiles()</a></dt>
<dd><p>_removeUnusedImportFiles</p>
</dd>
<dt><a href="#_removeUnusedMtimeInfo">_removeUnusedMtimeInfo()</a></dt>
<dd><p>_removeUnusedMtimeInfo</p>
</dd>
<dt><a href="#_scan">_scan(assetdb, fspath, opts, cb)</a></dt>
<dd><p>task scan</p>
</dd>
<dt><a href="#_checkIfReimport">_checkIfReimport(assetdb, fspath, cb)</a></dt>
<dd><p>check if reimport</p>
</dd>
<dt><a href="#_initMetas">_initMetas(assetdb, fspath, cb)</a></dt>
<dd><p>precache uuid from meta files, if meta file not exists, create it</p>
</dd>
<dt><a href="#_importAsset">_importAsset(assetdb, fspath, cb)</a></dt>
<dd><p>precache uuid from meta files, if meta file not exists, create it</p>
</dd>
<dt><a href="#_postImportAsset">_postImportAsset(assetdb, assetInfo, cb)</a></dt>
<dd><p>Post manipulations of meta files, it may used to create reference between imported assets.</p>
</dd>
<dt><a href="#_fillInResults">_fillInResults(assetdb, path, meta, results)</a></dt>
<dd><p>Construct results for given meta and fill into the results array</p>
</dd>
<dt><a href="#_refresh">_refresh()</a></dt>
<dd><p>task refresh</p>
</dd>
<dt><a href="#_preProcessMoveInput">_preProcessMoveInput()</a></dt>
<dd><p>callback&apos;s parameters: srcPath, destPath, srcpaths, destPaths</p>
</dd>
<dt><a href="#_copyFiles">_copyFiles()</a></dt>
<dd></dd>
<dt><a href="#_generateSubMetaDiff">_generateSubMetaDiff()</a></dt>
<dd><p>For save / saveMeta tasks to generate sub meta diff informations</p>
</dd>
<dt><a href="#_deleteAsset">_deleteAsset()</a></dt>
<dd><p>Delete one asset by fspath</p>
</dd>
</dl>

<p><a name="module_AssetDB"></a></p>
<h2 id="assetdb">AssetDB</h2>
<p><strong>Process</strong>: core  </p>
<ul>
<li><a href="#module_AssetDB">AssetDB</a><ul>
<li><em>static</em><ul>
<li><a href="#module_AssetDB.init">.init([cb])</a></li>
<li><a href="#module_AssetDB.refresh">.refresh(url, [cb])</a></li>
<li><a href="#module_AssetDB.deepQuery">.deepQuery([cb])</a></li>
<li><a href="#module_AssetDB.queryAssets">.queryAssets(pattern, assetTypes, [cb])</a></li>
<li><a href="#module_AssetDB.queryMetas">.queryMetas(pattern, type, [cb])</a></li>
<li><a href="#module_AssetDB.move">.move(srcUrl, destUrl, [cb])</a></li>
<li><a href="#module_AssetDB.delete">.delete(urls, [cb])</a></li>
<li><a href="#module_AssetDB.create">.create(url, data, [cb])</a></li>
<li><a href="#module_AssetDB.saveExists">.saveExists(url, data, [cb])</a></li>
<li><a href="#module_AssetDB.import">.import(rawfiles, url, [cb])</a></li>
<li><a href="#module_AssetDB.saveMeta">.saveMeta(uuid, jsonString, [cb])</a></li>
<li><a href="#module_AssetDB.exchangeUuid">.exchangeUuid(urlA, urlB, [cb])</a></li>
<li><a href="#module_AssetDB.clearImports">.clearImports(url, [cb])</a></li>
<li><a href="#module_AssetDB.register">.register(extname, folder, metaCtor)</a></li>
<li><a href="#module_AssetDB.unregister">.unregister(metaCtor)</a></li>
<li><a href="#module_AssetDB.getRelativePath">.getRelativePath(fspath)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB.getAssetBackupPath">.getAssetBackupPath(filePath)</a></li>
<li><a href="#module_AssetDB.setEventCallback">.setEventCallback(cb)</a></li>
</ul>
</li>
<li><em>inner</em><ul>
<li><a href="#module_AssetDB..urlToUuid">~urlToUuid(url)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB..fspathToUuid">~fspathToUuid(fspath)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB..uuidToFspath">~uuidToFspath(uuid)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB..uuidToUrl">~uuidToUrl(uuid)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB..fspathToUrl">~fspathToUrl(fspath)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB..urlToFspath">~urlToFspath(url)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB..exists">~exists(url)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB..existsByUuid">~existsByUuid(uuid)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB..existsByPath">~existsByPath(fspath)</a> &#x21D2; <code>string</code></li>
<li><a href="#module_AssetDB..isSubAsset">~isSubAsset(url)</a> &#x21D2; <code>boolean</code></li>
<li><a href="#module_AssetDB..isSubAssetByUuid">~isSubAssetByUuid(uuid)</a> &#x21D2; <code>boolean</code></li>
<li><a href="#module_AssetDB..isSubAssetByPath">~isSubAssetByPath(fspath)</a> &#x21D2; <code>boolean</code></li>
<li><a href="#module_AssetDB..containsSubAssets">~containsSubAssets(url)</a> &#x21D2; <code>boolean</code></li>
<li><a href="#module_AssetDB..containsSubAssetsByUuid">~containsSubAssetsByUuid(uuid)</a> &#x21D2; <code>boolean</code></li>
<li><a href="#module_AssetDB..containsSubAssetsByPath">~containsSubAssetsByPath(path)</a> &#x21D2; <code>boolean</code></li>
<li><a href="#module_AssetDB..assetInfo">~assetInfo(url)</a> &#x21D2; <code>object</code></li>
<li><a href="#module_AssetDB..assetInfoByUuid">~assetInfoByUuid(uuid)</a> &#x21D2; <code>object</code></li>
<li><a href="#module_AssetDB..assetInfoByPath">~assetInfoByPath(fspath)</a> &#x21D2; <code>object</code></li>
<li><a href="#module_AssetDB..subAssetInfos">~subAssetInfos(url)</a> &#x21D2; <code>array</code></li>
<li><a href="#module_AssetDB..subAssetInfosByUuid">~subAssetInfosByUuid(uuid)</a> &#x21D2; <code>array</code></li>
<li><a href="#module_AssetDB..subAssetInfosByPath">~subAssetInfosByPath(fspath)</a> &#x21D2; <code>array</code></li>
<li><a href="#module_AssetDB..loadMeta">~loadMeta(url)</a> &#x21D2; <code>object</code></li>
<li><a href="#module_AssetDB..loadMetaByUuid">~loadMetaByUuid(uuid)</a> &#x21D2; <code>object</code></li>
<li><a href="#module_AssetDB..loadMetaByPath">~loadMetaByPath(fspath)</a> &#x21D2; <code>object</code></li>
<li><a href="#module_AssetDB..isMount">~isMount(url)</a> &#x21D2; <code>boolean</code></li>
<li><a href="#module_AssetDB..isMountByPath">~isMountByPath(fspath)</a> &#x21D2; <code>boolean</code></li>
<li><a href="#module_AssetDB..isMountByUuid">~isMountByUuid(uuid)</a> &#x21D2; <code>boolean</code></li>
<li><a href="#module_AssetDB..mountInfo">~mountInfo(url)</a> &#x21D2; <code>object</code></li>
<li><a href="#module_AssetDB..mountInfoByUuid">~mountInfoByUuid(uuid)</a> &#x21D2; <code>object</code></li>
<li><a href="#module_AssetDB..mountInfoByPath">~mountInfoByPath(fspath)</a> &#x21D2; <code>object</code></li>
<li><a href="#module_AssetDB..mount">~mount(path, mountPath, opts, [cb])</a></li>
<li><a href="#module_AssetDB..attachMountPath">~attachMountPath(mountPath, [cb])</a></li>
<li><a href="#module_AssetDB..unattachMountPath">~unattachMountPath(mountPath, [cb])</a></li>
<li><a href="#module_AssetDB..unmount">~unmount(mountPath, [cb])</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<p><a name="module_AssetDB.init"></a></p>
<h3 id="assetdbinitcb">AssetDB.init([cb])</h3>
<p>Init assetdb, it will scan the mounted directories, and import unimported assets.</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.init(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">err, results</span>) </span>{
  <span class="hljs-comment">// assets that imported during init</span>
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> result </span>) </span>{
    <span class="hljs-comment">// result.uuid</span>
    <span class="hljs-comment">// result.parentUuid</span>
    <span class="hljs-comment">// result.url</span>
    <span class="hljs-comment">// result.path</span>
    <span class="hljs-comment">// result.type</span>
  });
});
</code></pre>
<p><a name="module_AssetDB.refresh"></a></p>
<h3 id="assetdbrefreshurl-cb">AssetDB.refresh(url, [cb])</h3>
<p>Refresh the assets in url, and return the results</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.refresh(<span class="hljs-string">&apos;db://assets/foo/bar/&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">err, results</span>) </span>{
  <span class="hljs-comment">// assets that imported during init</span>
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> result </span>) </span>{
    <span class="hljs-keyword">if</span> ( result.command === <span class="hljs-string">&apos;delete&apos;</span> ) {
      <span class="hljs-comment">// result.uuid</span>
      <span class="hljs-comment">// result.url</span>
      <span class="hljs-comment">// result.path</span>
      <span class="hljs-comment">// result.type</span>
    } <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> ( result.command === <span class="hljs-string">&apos;change&apos;</span> || result.command === <span class="hljs-string">&apos;create&apos;</span> ) {
      <span class="hljs-comment">// result.uuid</span>
      <span class="hljs-comment">// result.parentUuid</span>
      <span class="hljs-comment">// result.url</span>
      <span class="hljs-comment">// result.path</span>
      <span class="hljs-comment">// result.type</span>
    } <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> ( result.command === <span class="hljs-string">&apos;uuid-change&apos;</span> ) {
      <span class="hljs-comment">// result.oldUuid</span>
      <span class="hljs-comment">// result.uuid</span>
      <span class="hljs-comment">// result.parentUuid</span>
      <span class="hljs-comment">// result.url</span>
      <span class="hljs-comment">// result.path</span>
      <span class="hljs-comment">// result.type</span>
    }
  });
});
</code></pre>
<p><a name="module_AssetDB.deepQuery"></a></p>
<h3 id="assetdbdeepquerycb">AssetDB.deepQuery([cb])</h3>
<p>deepQuery</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.deepQuery(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, results </span>) </span>{
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> result </span>) </span>{
    <span class="hljs-comment">// result.name</span>
    <span class="hljs-comment">// result.extname</span>
    <span class="hljs-comment">// result.uuid</span>
    <span class="hljs-comment">// result.type</span>
    <span class="hljs-comment">// result.isSubAsset</span>
    <span class="hljs-comment">// result.children - the array of children result</span>
  });
});
</code></pre>
<p><a name="module_AssetDB.queryAssets"></a></p>
<h3 id="assetdbqueryassetspattern-assettypes-cb">AssetDB.queryAssets(pattern, assetTypes, [cb])</h3>
<p>queryAssets</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>pattern</td>
<td><code>string</code></td>
<td>The url pattern</td>
</tr>
<tr>
<td>assetTypes</td>
<td><code>string</code> \</td>
<td><code>array</code></td>
<td>The asset type(s)</td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
<td>The callback function</td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.queryAssets( <span class="hljs-string">&apos;db://assets/**\/*&apos;</span>, <span class="hljs-string">&apos;texture&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, results </span>) </span>{
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> result </span>) </span>{
    <span class="hljs-comment">// result.url</span>
    <span class="hljs-comment">// result.path</span>
    <span class="hljs-comment">// result.uuid</span>
    <span class="hljs-comment">// result.type</span>
    <span class="hljs-comment">// result.isSubAsset</span>
  });
});
</code></pre>
<p><a name="module_AssetDB.queryMetas"></a></p>
<h3 id="assetdbquerymetaspattern-type-cb">AssetDB.queryMetas(pattern, type, [cb])</h3>
<p>queryMetas</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>pattern</td>
<td><code>string</code></td>
<td>The url pattern</td>
</tr>
<tr>
<td>type</td>
<td><code>string</code></td>
<td>The asset type</td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
<td>The callback function</td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.queryAssets( <span class="hljs-string">&apos;db://assets/**\/*&apos;</span>, <span class="hljs-string">&apos;texture&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, results </span>) </span>{
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> meta </span>) </span>{
    <span class="hljs-comment">// the meta instance</span>
  });
});
</code></pre>
<p><a name="module_AssetDB.move"></a></p>
<h3 id="assetdbmovesrcurl-desturl-cb">AssetDB.move(srcUrl, destUrl, [cb])</h3>
<p>move</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>srcUrl</td>
<td><code>string</code></td>
</tr>
<tr>
<td>destUrl</td>
<td><code>string</code></td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.move( <span class="hljs-string">&apos;db://assets/foo/foobar.png&apos;</span>, <span class="hljs-string">&apos;db://assets/bar/foobar.png&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, results </span>) </span>{
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> result </span>) </span>{
    <span class="hljs-comment">// result.srcPath</span>
    <span class="hljs-comment">// result.destPath</span>
    <span class="hljs-comment">// result.uuid</span>
    <span class="hljs-comment">// result.parentUuid</span>
  });
});
</code></pre>
<p><a name="module_AssetDB.delete"></a></p>
<h3 id="assetdbdeleteurls-cb">AssetDB.delete(urls, [cb])</h3>
<p>delete</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>urls</td>
<td><code>array</code></td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.delete( [ <span class="hljs-string">&apos;db://assets/foo/bar.png&apos;</span>, <span class="hljs-string">&apos;db://assets/foo/bar.plist&apos;</span> ], <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, results </span>) </span>{
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> result </span>) </span>{
    <span class="hljs-comment">// result.srcPath</span>
    <span class="hljs-comment">// result.destPath</span>
    <span class="hljs-comment">// result.uuid</span>
    <span class="hljs-comment">// result.parentUuid</span>
  });
});
</code></pre>
<p><a name="module_AssetDB.create"></a></p>
<h3 id="assetdbcreateurl-data-cb">AssetDB.create(url, data, [cb])</h3>
<p>Create asset at url with data</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
<tr>
<td>data</td>
<td><code>string</code></td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.create( <span class="hljs-string">&apos;db://assets/foo/bar.js&apos;</span>, data, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, results </span>) </span>{
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> result </span>) </span>{
    <span class="hljs-comment">// result.uuid</span>
    <span class="hljs-comment">// result.parentUuid</span>
    <span class="hljs-comment">// result.url</span>
    <span class="hljs-comment">// result.path</span>
    <span class="hljs-comment">// result.type</span>
  });
});
</code></pre>
<p><a name="module_AssetDB.saveExists"></a></p>
<h3 id="assetdbsaveexistsurl-data-cb">AssetDB.saveExists(url, data, [cb])</h3>
<p>Save data to the exists asset at url</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
<tr>
<td>data</td>
<td><code>string</code></td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.saveExists( <span class="hljs-string">&apos;db://assets/foo/bar.js&apos;</span>, data, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, meta </span>) </span>{
  <span class="hljs-comment">// do something</span>
});
</code></pre>
<p><a name="module_AssetDB.import"></a></p>
<h3 id="assetdbimportrawfiles-url-cb">AssetDB.import(rawfiles, url, [cb])</h3>
<p>Import raw files to url</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>rawfiles</td>
<td><code>array</code></td>
</tr>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.import( [<span class="hljs-string">&apos;/User/user/foo.js&apos;</span>, <span class="hljs-string">&apos;/User/user/bar.js&apos;</span>], <span class="hljs-string">&apos;db://assets/foobar&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, results </span>) </span>{
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> result </span>) </span>{
    <span class="hljs-comment">// result.uuid</span>
    <span class="hljs-comment">// result.parentUuid</span>
    <span class="hljs-comment">// result.url</span>
    <span class="hljs-comment">// result.path</span>
    <span class="hljs-comment">// result.type</span>
  });
});
</code></pre>
<p><a name="module_AssetDB.saveMeta"></a></p>
<h3 id="assetdbsavemetauuid-jsonstring-cb">AssetDB.saveMeta(uuid, jsonString, [cb])</h3>
<p>Overwrite the meta by loading it through uuid</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
<tr>
<td>jsonString</td>
<td><code>string</code></td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.saveMeta( uuid, jsonString, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, meta </span>) </span>{
  <span class="hljs-comment">// do something</span>
});
</code></pre>
<p><a name="module_AssetDB.exchangeUuid"></a></p>
<h3 id="assetdbexchangeuuidurla-urlb-cb">AssetDB.exchangeUuid(urlA, urlB, [cb])</h3>
<p>Exchange uuid for two assets</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>urlA</td>
<td><code>string</code></td>
</tr>
<tr>
<td>urlB</td>
<td><code>string</code></td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB.clearImports"></a></p>
<h3 id="assetdbclearimportsurl-cb">AssetDB.clearImports(url, [cb])</h3>
<p>Clear imports</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.clearImports( <span class="hljs-string">&apos;db://assets/foo/bar.js&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> err, results </span>) </span>{
  results.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"> result </span>) </span>{
    <span class="hljs-comment">// result.uuid</span>
    <span class="hljs-comment">// result.url</span>
    <span class="hljs-comment">// result.path</span>
    <span class="hljs-comment">// result.type</span>
  });
});
</code></pre>
<p><a name="module_AssetDB.register"></a></p>
<h3 id="assetdbregisterextname-folder-metactor">AssetDB.register(extname, folder, metaCtor)</h3>
<p>Register meta type</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>extname</td>
<td><code>string</code></td>
<td></td>
</tr>
<tr>
<td>folder</td>
<td><code>boolean</code></td>
<td>Whether it&apos;s a folder type</td>
</tr>
<tr>
<td>metaCtor</td>
<td><code>object</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.register( <span class="hljs-string">&apos;.png&apos;</span>, <span class="hljs-literal">false</span>, PngMeta );
</code></pre>
<p><a name="module_AssetDB.unregister"></a></p>
<h3 id="assetdbunregistermetactor">AssetDB.unregister(metaCtor)</h3>
<p>Unregister meta type</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>metaCtor</td>
<td><code>object</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.unregister( PngMeta );
</code></pre>
<p><a name="module_AssetDB.getRelativePath"></a></p>
<h3 id="assetdbgetrelativepathfspath-&#x21D2;-string">AssetDB.getRelativePath(fspath) &#x21D2; <code>string</code></h3>
<p>Get the relative path from mount path to the asset by fspath</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>string</code> - the relative path from mount path to the asset  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB.getAssetBackupPath"></a></p>
<h3 id="assetdbgetassetbackuppathfilepath">AssetDB.getAssetBackupPath(filePath)</h3>
<p>get the backup file path of asset file</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>filePath</td>
<td><code>string</code></td>
<td>asset file path</td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB.setEventCallback"></a></p>
<h3 id="assetdbseteventcallbackcb">AssetDB.setEventCallback(cb)</h3>
<p>set the event callback for assets events</p>
<p><strong>Kind</strong>: static method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>cb</td>
<td><code>object</code></td>
<td>The callback for assets events.</td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.setEventCallback((event, params) =&gt; {
   <span class="hljs-comment">// do something for the event</span>
})
</code></pre>
<p><a name="module_AssetDB..urlToUuid"></a></p>
<h3 id="assetdburltouuidurl-&#x21D2;-string">AssetDB~urlToUuid(url) &#x21D2; <code>string</code></h3>
<p>Return uuid by url. if uuid not found, it will return null.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..fspathToUuid"></a></p>
<h3 id="assetdbfspathtouuidfspath-&#x21D2;-string">AssetDB~fspathToUuid(fspath) &#x21D2; <code>string</code></h3>
<p>Return uuid by file path. if uuid not found, it will return null.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..uuidToFspath"></a></p>
<h3 id="assetdbuuidtofspathuuid-&#x21D2;-string">AssetDB~uuidToFspath(uuid) &#x21D2; <code>string</code></h3>
<p>Return file path by uuid. if file path not found, it will return null.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..uuidToUrl"></a></p>
<h3 id="assetdbuuidtourluuid-&#x21D2;-string">AssetDB~uuidToUrl(uuid) &#x21D2; <code>string</code></h3>
<p>Return url by uuid. if url not found, it will return null.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..fspathToUrl"></a></p>
<h3 id="assetdbfspathtourlfspath-&#x21D2;-string">AssetDB~fspathToUrl(fspath) &#x21D2; <code>string</code></h3>
<p>Return url by file path. if file path not found, it will return null.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..urlToFspath"></a></p>
<h3 id="assetdburltofspathurl-&#x21D2;-string">AssetDB~urlToFspath(url) &#x21D2; <code>string</code></h3>
<p>Return file path by url. if url not found, it will return null.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..exists"></a></p>
<h3 id="assetdbexistsurl-&#x21D2;-string">AssetDB~exists(url) &#x21D2; <code>string</code></h3>
<p>Check existance by url.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..existsByUuid"></a></p>
<h3 id="assetdbexistsbyuuiduuid-&#x21D2;-string">AssetDB~existsByUuid(uuid) &#x21D2; <code>string</code></h3>
<p>Check existance by uuid.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..existsByPath"></a></p>
<h3 id="assetdbexistsbypathfspath-&#x21D2;-string">AssetDB~existsByPath(fspath) &#x21D2; <code>string</code></h3>
<p>Check existance by path.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..isSubAsset"></a></p>
<h3 id="assetdbissubasseturl-&#x21D2;-boolean">AssetDB~isSubAsset(url) &#x21D2; <code>boolean</code></h3>
<p>Check whether asset for a given url is a sub asset.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..isSubAssetByUuid"></a></p>
<h3 id="assetdbissubassetbyuuiduuid-&#x21D2;-boolean">AssetDB~isSubAssetByUuid(uuid) &#x21D2; <code>boolean</code></h3>
<p>Check whether asset for a given uuid is a sub asset.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..isSubAssetByPath"></a></p>
<h3 id="assetdbissubassetbypathfspath-&#x21D2;-boolean">AssetDB~isSubAssetByPath(fspath) &#x21D2; <code>boolean</code></h3>
<p>Check whether asset for a given path is a sub asset.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..containsSubAssets"></a></p>
<h3 id="assetdbcontainssubassetsurl-&#x21D2;-boolean">AssetDB~containsSubAssets(url) &#x21D2; <code>boolean</code></h3>
<p>Check whether asset contains sub assets for a given url.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..containsSubAssetsByUuid"></a></p>
<h3 id="assetdbcontainssubassetsbyuuiduuid-&#x21D2;-boolean">AssetDB~containsSubAssetsByUuid(uuid) &#x21D2; <code>boolean</code></h3>
<p>Check whether asset contains sub assets for a given uuid.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..containsSubAssetsByPath"></a></p>
<h3 id="assetdbcontainssubassetsbypathpath-&#x21D2;-boolean">AssetDB~containsSubAssetsByPath(path) &#x21D2; <code>boolean</code></h3>
<p>Check whether asset contains sub assets for a given path.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>path</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..assetInfo"></a></p>
<h3 id="assetdbassetinfourl-&#x21D2;-object">AssetDB~assetInfo(url) &#x21D2; <code>object</code></h3>
<p>Return asset info by a given url.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>object</code> - - { uuid, path, url, type, isSubAsset }  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..assetInfoByUuid"></a></p>
<h3 id="assetdbassetinfobyuuiduuid-&#x21D2;-object">AssetDB~assetInfoByUuid(uuid) &#x21D2; <code>object</code></h3>
<p>Return asset info by a given uuid.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>object</code> - - { uuid, path, url, type, isSubAsset }  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..assetInfoByPath"></a></p>
<h3 id="assetdbassetinfobypathfspath-&#x21D2;-object">AssetDB~assetInfoByPath(fspath) &#x21D2; <code>object</code></h3>
<p>Return asset info by a given file path.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>object</code> - - { uuid, path, url, type, isSubAsset }  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..subAssetInfos"></a></p>
<h3 id="assetdbsubassetinfosurl-&#x21D2;-array">AssetDB~subAssetInfos(url) &#x21D2; <code>array</code></h3>
<p>Return all sub assets info by url if the url contains sub assets.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>array</code> - - [{ uuid, path, url, type, isSubAsset }]  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..subAssetInfosByUuid"></a></p>
<h3 id="assetdbsubassetinfosbyuuiduuid-&#x21D2;-array">AssetDB~subAssetInfosByUuid(uuid) &#x21D2; <code>array</code></h3>
<p>Return all sub assets info by uuid if the uuid contains sub assets.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>array</code> - - [{ uuid, path, url, type, isSubAsset }]  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..subAssetInfosByPath"></a></p>
<h3 id="assetdbsubassetinfosbypathfspath-&#x21D2;-array">AssetDB~subAssetInfosByPath(fspath) &#x21D2; <code>array</code></h3>
<p>Return all sub assets info by path if the path contains sub assets.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>array</code> - - [{ uuid, path, url, type, isSubAsset }]  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..loadMeta"></a></p>
<h3 id="assetdbloadmetaurl-&#x21D2;-object">AssetDB~loadMeta(url) &#x21D2; <code>object</code></h3>
<p>Return meta instance by a given url.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..loadMetaByUuid"></a></p>
<h3 id="assetdbloadmetabyuuiduuid-&#x21D2;-object">AssetDB~loadMetaByUuid(uuid) &#x21D2; <code>object</code></h3>
<p>Return meta instance by a given uuid.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..loadMetaByPath"></a></p>
<h3 id="assetdbloadmetabypathfspath-&#x21D2;-object">AssetDB~loadMetaByPath(fspath) &#x21D2; <code>object</code></h3>
<p>Return meta instance by a given path.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..isMount"></a></p>
<h3 id="assetdbismounturl-&#x21D2;-boolean">AssetDB~isMount(url) &#x21D2; <code>boolean</code></h3>
<p>Return whether a given url is reference to a mount</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..isMountByPath"></a></p>
<h3 id="assetdbismountbypathfspath-&#x21D2;-boolean">AssetDB~isMountByPath(fspath) &#x21D2; <code>boolean</code></h3>
<p>Return whether a given path is reference to a mount</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..isMountByUuid"></a></p>
<h3 id="assetdbismountbyuuiduuid-&#x21D2;-boolean">AssetDB~isMountByUuid(uuid) &#x21D2; <code>boolean</code></h3>
<p>Return whether a given uuid is reference to a mount</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..mountInfo"></a></p>
<h3 id="assetdbmountinfourl-&#x21D2;-object">AssetDB~mountInfo(url) &#x21D2; <code>object</code></h3>
<p>Return mount info by url</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>object</code> - - { path, name, type }  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..mountInfoByUuid"></a></p>
<h3 id="assetdbmountinfobyuuiduuid-&#x21D2;-object">AssetDB~mountInfoByUuid(uuid) &#x21D2; <code>object</code></h3>
<p>Return mount info by uuid</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>object</code> - - { path, name, type }  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..mountInfoByPath"></a></p>
<h3 id="assetdbmountinfobypathfspath-&#x21D2;-object">AssetDB~mountInfoByPath(fspath) &#x21D2; <code>object</code></h3>
<p>Return mount info by path</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a><br><strong>Returns</strong>: <code>object</code> - - { path, name, type }  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>fspath</td>
<td><code>string</code></td>
</tr>
</tbody>
</table>
<p><a name="module_AssetDB..mount"></a></p>
<h3 id="assetdbmountpath-mountpath-opts-cb">AssetDB~mount(path, mountPath, opts, [cb])</h3>
<p>mount a directory to assetdb, and give it a name. if you don&apos;t provide a name, it will mount to root.</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>path</td>
<td><code>string</code></td>
<td>file system path</td>
</tr>
<tr>
<td>mountPath</td>
<td><code>string</code></td>
<td>the mount path (relative path)</td>
</tr>
<tr>
<td>opts</td>
<td><code>object</code></td>
<td>options</td>
</tr>
<tr>
<td>opts.hide</td>
<td><code>object</code></td>
<td>if the mount hide in assets browser</td>
</tr>
<tr>
<td>opts.virtual</td>
<td><code>object</code></td>
<td>if this is a virtual mount point</td>
</tr>
<tr>
<td>opts.icon</td>
<td><code>object</code></td>
<td>icon for the mount</td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
<td>a callback function</td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.mount(<span class="hljs-string">&apos;path/to/mount&apos;</span>, <span class="hljs-string">&apos;assets&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">err</span>) </span>{
  <span class="hljs-comment">// mounted, do something ...</span>
});
</code></pre>
<p><a name="module_AssetDB..attachMountPath"></a></p>
<h3 id="assetdbattachmountpathmountpath-cb">AssetDB~attachMountPath(mountPath, [cb])</h3>
<p>attach the specified mount path</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>mountPath</td>
<td><code>string</code></td>
<td>the mount path (relative path)</td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
<td>a callback function</td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.attachMountPath(<span class="hljs-string">&apos;assets&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">err, results</span>) </span>{
  <span class="hljs-comment">// mount path attached, do something ...</span>
  <span class="hljs-comment">// results are the assets created</span>
});
</code></pre>
<p><a name="module_AssetDB..unattachMountPath"></a></p>
<h3 id="assetdbunattachmountpathmountpath-cb">AssetDB~unattachMountPath(mountPath, [cb])</h3>
<p>unattach the specified mount path</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>mountPath</td>
<td><code>string</code></td>
<td>the mount path (relative path)</td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
<td>a callback function</td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.unattachMountPath(<span class="hljs-string">&apos;assets&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">err, results</span>) </span>{
  <span class="hljs-comment">// mount path unattached, do something ...</span>
  <span class="hljs-comment">// results are the assets deleted</span>
});
</code></pre>
<p><a name="module_AssetDB..unmount"></a></p>
<h3 id="assetdbunmountmountpath-cb">AssetDB~unmount(mountPath, [cb])</h3>
<p>Unmount by name</p>
<p><strong>Kind</strong>: inner method of <a href="#module_AssetDB"><code>AssetDB</code></a>  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>mountPath</td>
<td><code>string</code></td>
<td>the mount path</td>
</tr>
<tr>
<td>[cb]</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><strong>Example</strong>  </p>
<pre><code class="lang-js">Editor.assetdb.unmount(<span class="hljs-string">&apos;assets&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">err</span>) </span>{
  <span class="hljs-comment">// unmounted, do something ...</span>
});
</code></pre>
<p><a name="_checkIfMountValid"></a></p>
<h2 id="checkifmountvalidassetdb-fspath">_checkIfMountValid(assetdb, fspath)</h2>
<p>check and remove unused meta file</p>
<p><strong>Kind</strong>: global function  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>fspath</td>
<td><code>string</code></td>
<td>meta file path</td>
</tr>
</tbody>
</table>
<p><a name="_deleteImportedAssets"></a></p>
<h2 id="deleteimportedassets">_deleteImportedAssets()</h2>
<p><strong>Kind</strong>: global function<br><a name="_removeUnusedMeta"></a></p>
<h2 id="removeunusedmetaassetdb-metapath">_removeUnusedMeta(assetdb, metapath)</h2>
<p>check and remove unused meta file</p>
<p><strong>Kind</strong>: global function  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>metapath</td>
<td><code>string</code></td>
<td>meta file path</td>
</tr>
</tbody>
</table>
<p><a name="_backupUnusedMeta"></a></p>
<h2 id="backupunusedmetaassetdb-metapath-force-&#x21D2;-string">_backupUnusedMeta(assetdb, metapath, force) &#x21D2; <code>string</code></h2>
<p>check and backup unused meta file</p>
<p><strong>Kind</strong>: global function<br><strong>Returns</strong>: <code>string</code> - The relative path of the meta file. If not backed up, return null  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>metapath</td>
<td><code>string</code></td>
<td>meta file path</td>
</tr>
<tr>
<td>force</td>
<td><code>boolean</code></td>
<td>skip the check process and force do backup, default is false</td>
</tr>
</tbody>
</table>
<p><a name="_backupAsset"></a></p>
<h2 id="backupassetassetdb-filepath">_backupAsset(assetdb, filePath)</h2>
<p>check and backup asset file</p>
<p><strong>Kind</strong>: global function  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>filePath</td>
<td><code>string</code></td>
<td>asset file path</td>
</tr>
</tbody>
</table>
<p><a name="_removeUnusedImportFiles"></a></p>
<h2 id="removeunusedimportfiles">_removeUnusedImportFiles()</h2>
<p>_removeUnusedImportFiles</p>
<p><strong>Kind</strong>: global function<br><a name="_removeUnusedMtimeInfo"></a></p>
<h2 id="removeunusedmtimeinfo">_removeUnusedMtimeInfo()</h2>
<p>_removeUnusedMtimeInfo</p>
<p><strong>Kind</strong>: global function<br><a name="_scan"></a></p>
<h2 id="scanassetdb-fspath-opts-cb">_scan(assetdb, fspath, opts, cb)</h2>
<p>task scan</p>
<p><strong>Kind</strong>: global function  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>fspath</td>
<td><code>string</code></td>
<td>file system path</td>
</tr>
<tr>
<td>opts</td>
<td><code>object</code></td>
<td>options</td>
</tr>
<tr>
<td>opts.remove-unused-meta</td>
<td><code>object</code></td>
<td>indicate if remove unused meta file</td>
</tr>
<tr>
<td>opts.filter-meta</td>
<td><code>object</code></td>
<td>if results need filter .meta file</td>
</tr>
<tr>
<td>cb</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><a name="_checkIfReimport"></a></p>
<h2 id="checkifreimportassetdb-fspath-cb">_checkIfReimport(assetdb, fspath, cb)</h2>
<p>check if reimport</p>
<p><strong>Kind</strong>: global function  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>fspath</td>
<td><code>string</code></td>
<td>file system path</td>
</tr>
<tr>
<td>cb</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><a name="_initMetas"></a></p>
<h2 id="initmetasassetdb-fspath-cb">_initMetas(assetdb, fspath, cb)</h2>
<p>precache uuid from meta files, if meta file not exists, create it</p>
<p><strong>Kind</strong>: global function  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>fspath</td>
<td><code>string</code></td>
<td>file system path</td>
</tr>
<tr>
<td>cb</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><a name="_importAsset"></a></p>
<h2 id="importassetassetdb-fspath-cb">_importAsset(assetdb, fspath, cb)</h2>
<p>precache uuid from meta files, if meta file not exists, create it</p>
<p><strong>Kind</strong>: global function  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>fspath</td>
<td><code>string</code></td>
<td>file system path</td>
</tr>
<tr>
<td>cb</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><a name="_postImportAsset"></a></p>
<h2 id="postimportassetassetdb-assetinfo-cb">_postImportAsset(assetdb, assetInfo, cb)</h2>
<p>Post manipulations of meta files, it may used to create reference between imported assets.</p>
<p><strong>Kind</strong>: global function  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>assetInfo</td>
<td><code>object</code></td>
<td>Asset info object including file system path and other informations.</td>
</tr>
<tr>
<td>cb</td>
<td><code>function</code></td>
</tr>
</tbody>
</table>
<p><a name="_fillInResults"></a></p>
<h2 id="fillinresultsassetdb-path-meta-results">_fillInResults(assetdb, path, meta, results)</h2>
<p>Construct results for given meta and fill into the results array</p>
<p><strong>Kind</strong>: global function  </p>
<table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>assetdb</td>
<td><code>object</code></td>
<td>asset database</td>
</tr>
<tr>
<td>path</td>
<td><code>string</code></td>
<td>file system path for asset</td>
</tr>
<tr>
<td>meta</td>
<td><code>AssetMeta</code></td>
<td>Meta object</td>
</tr>
<tr>
<td>results</td>
<td><code>Array</code></td>
<td>The results array to fill</td>
</tr>
</tbody>
</table>
<p><a name="_refresh"></a></p>
<h2 id="refresh">_refresh()</h2>
<p>task refresh</p>
<p><strong>Kind</strong>: global function<br><a name="_preProcessMoveInput"></a></p>
<h2 id="preprocessmoveinput">_preProcessMoveInput()</h2>
<p>callback&apos;s parameters: srcPath, destPath, srcpaths, destPaths</p>
<p><strong>Kind</strong>: global function<br><a name="_copyFiles"></a></p>
<h2 id="copyfiles">_copyFiles()</h2>
<p><strong>Kind</strong>: global function<br><a name="_generateSubMetaDiff"></a></p>
<h2 id="generatesubmetadiff">_generateSubMetaDiff()</h2>
<p>For save / saveMeta tasks to generate sub meta diff informations</p>
<p><strong>Kind</strong>: global function<br><a name="_deleteAsset"></a></p>
<h2 id="deleteasset">_deleteAsset()</h2>
<p>Delete one asset by fspath</p>
<p><strong>Kind</strong>: global function  </p>

                
                </section>
            
        </div>
    </div>

            </div>

            
                
                <a href="../enums/WrapMode.html" class="navigation navigation-prev " aria-label="Previous page: WrapMode">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="main/editor.html" class="navigation navigation-next " aria-label="Next page: Editor">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"AssetDB","level":"4.1","depth":1,"next":{"title":"Editor","level":"5.1","depth":1,"path":"editor/main/editor.md","ref":"editor/main/editor.md","articles":[]},"previous":{"title":"WrapMode","level":"3.70","depth":1,"path":"enums/WrapMode.md","ref":"enums/WrapMode.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","search-title","github-issue-feedback-language-custom","anchorjs","sharing","splitter"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"livereload":{},"splitter":{},"search":{"maxIndexSize":100000000},"lunr":{"maxIndexSize":100000000},"fontsettings":{"theme":"white","family":"sans","size":2},"search-title":{},"highlight":{},"sharing":{"qq":true,"all":["facebook","google","twitter","weibo","instapaper"],"douban":false,"facebook":true,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"github-issue-feedback-language-custom":{"repo":"cocos-creator/creator-api-docs","branch":"master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"index.md","glossary":"GLOSSARY.md","summary":"index.md"},"variables":{"products":[{"name":"Cocos Creator","links":[{"name":"Manual","link":"http://docs.cocos.com/creator/manual/en"},{"name":"API Ref","link":"http://docs.cocos.com/creator/api/en"}]},{"name":"Cocos2d-x","links":[{"name":"Manual","link":"http://docs.cocos.com/cocos2d-x/manual/en/"},{"name":"API Ref","link":"http://www.cocos2d-x.org/docs/api-ref/index.html"}]},{"name":"AnySDK","link":"http://docs.anysdk.com/"}],"version":[{"name":"2.0 Preview","links":[{"name":"1.x","link":"http://docs.cocos.com/creator/api/en"},{"name":"2.0 Preview","link":"http://docs.cocos.com/creator/api/2.0/en"}]}]},"language":"en","gitbook":"*"},"file":{"path":"editor/asset-db.md","mtime":"2018-05-28T06:07:11.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-06-12T08:19:29.814Z"},"basePath":"..","book":{"language":"en"}});
        });
    </script>
</div>

        
    
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-title/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-title/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github-issue-feedback-language-custom/plugin.js"></script>
        
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-anchorjs/anchor-style.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script type="text/javascript">
    function toggleLanguage () {
        var path = location.href;
        // console.log(path);
        if (path.indexOf('/zh') !== -1) {
            path = path.replace(/\/zh[\/$\s]/i, '/en/');
        } else if (path.indexOf('/en') !== -1) {
            path = path.replace(/\/en[\/$\s]/i, '/zh/');
        }
        // console.log('after: ' + path);    
        location.assign(path);
    }

    // this method is used to avoid the possibility of failure of the URL's anchor on WAN
    function makeSureAnchorJumped () {
        var anchor = window.location.href.split('#')[1];
        if (anchor) {
            var element = document.getElementById(anchor);
            if (element) {
                var topPos = element.offsetTop;
                // for Safari browers
                document.body.scrollTop = topPos;
                // for IE, Chrome, FireFox, Opera browers
                document.documentElement.scrollTop = topPos;
            }
        }
    }

    function avoidOnLoadConflict (onLoad) {
        if (!window.onload) {
            window.onload = onLoad;
        }
        else {
            var oldFunc = window.onload;
            window.onload = function () {
                oldFunc();
                onLoad();            
            };
        }
    }
    avoidOnLoadConflict(makeSureAnchorJumped);
    </script>

    </body>
</html>

